export const constantRoute = [
    {
      path: '/',
      name: 'layout',
      component: ()=> import('@/layout/indexView.vue'),
        meta:{
          // title:"layout",
          icon:'Promotion'
        },
        redirect:'/home',
      children:[
        {
            path:'/home',
            name:'Home',
            component:()=>import ('@/views/home/homeView'),
            meta:{
                title:'首页',
                icon:'HomeFilled'
            }
        }
      ]
        
    },
    {
      path:'/screen',
      name:'Screen',
      component: ()=>import ('../views/screen/screenView.vue'),
      meta:{
        title:'数据大屏',
        hidden:false,
        icon:'Platform'
      }
    },
   
    {
      path:'/acl',
      name:'Acl',
      component:()=>import ('@/layout/indexView.vue'),
      meta:{
        title:"权限管理",
        icon:'Lock',
        hidden:false
      },
      redirect:'/acl/user',
      children:[
        {
            path:'/acl/user',
            name:'User',
            component:()=>import ('@/views/acl/userView.vue'),
            meta:{
                title:'用户管理',
                icon:'User'
            }
        },
        {
            path:'/acl/role',
            name:'Role',
            component:()=>import ('@/views/acl/roleView.vue'),
            meta:{
                title:'角色管理',
                icon:'Camera'
            }
        },
        {
            path:'/acl/menu',
            name:'Menu',
            component:()=>import ('@/views/acl/menuView.vue'),
            meta:{
                title:'菜单管理',
                icon:'List'
            }
        }
      ]
    },
    {
      path:'/product',
      name:'Product',
      component:()=>import ('@/layout/indexView.vue'),
      meta:{
        title:"商品管理",
        icon:'Handbag'
      },
      redirect:'/product/trademark',
      children:[
        {
            path:'/product/trademark',
            name:'Trademark',
            component:()=>import ('@/views/product/goods/goodsView.vue'),
            meta:{
                title:'品牌管理',
                icon:'ShoppingCart'
            }
        },
        {
          path:'/product/attr',
          name:'Attr',
          component:()=>import ('@/views/product/attr/attrView.vue'),
          meta:{
              title:'属性管理',
              icon:'Present'
          }
        },
        {
          path:'/product/sku',
          name:'Sku',
          component:()=>import ('@/views/product/sku/skuView.vue'),
          meta:{
              title:'sku管理',
              icon:'Sell'
          }
        },
        {
          path:'/product/spu',
          name:'Spu',
          component:()=>import ('@/views/product/spu/spuView.vue'),
          meta:{
              title:'spu管理',
              icon:'PriceTag'
          }
        }
       
      ]
    },
    {
      path:'/login',
      name:'Login',
      component:()=> import ('@/views/login/loginView.vue'),
      meta:{
        title:"登录",
        icon:'',
        hidden:true
      }
      
    },
    {
      path: '/404',
      name: '404',
      component: () => import(/* webpackChunkName: "about" */ '../views/404View.vue'),
      meta:{
        title:'404',
        icon:'',
        hidden:true
      }
    },
    {
      path:'/:pathMatch(.*)*',
      redirect:'/404',
      name:'Any',
      meta:{
        title:'任意路由',
        icon:'',
        hidden:true
      }
    }
  
  ]